import request from '@/uilts/request'
// 获取部门列表
export const getDepartmentList = () => request.get('/department')
// 新增部门
export const addDepartmentList = (data) => request.post('/department', data)
// 获取部门详情
export const getDepartmentDetail = (id) => request.get(`/department/${id}`)
// 编辑部门详情
export const updateDepartment = (data) => request.put(`/department/${data.id}`, data)
// 删除部门
export const delDepartment = (id) => request.delete(`/department/${id}`)
